package ru.ssau.customerManagement.controller.remoting;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * Created by illabefat on 22.11.14.
 */
@XmlRootElement(name = "operationRequest")
@XmlAccessorType(XmlAccessType.FIELD)
public class OperationRequest implements Serializable{
    private static final long serialVersionUID = -4692734931278562178L;

    private String methodName;
    private Object[] args;

    public OperationRequest(){}
    public OperationRequest(String methodName, Object ... args) {
        this.methodName = methodName;
        this.args = args;
    }

    public Object[] getArgs() {
        return args;
    }
    public void setArgs(Object ... args) {
        this.args = args;
    }

    public String getMethodName() {
        return methodName;
    }
    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }
}
